﻿namespace VividKit.ComponentModel
{
    using System;
    using WpfCommandManager = System.Windows.Input.CommandManager;

    internal class CommandManager : ICommandManager
    {
        public event EventHandler RequerySuggested
        {
            add
            {
                WpfCommandManager.RequerySuggested += value;
            }
            remove
            {
                WpfCommandManager.RequerySuggested -= value;
            }
        }

        public void InvalidateRequerySuggested()
        {
            WpfCommandManager.InvalidateRequerySuggested();
        }
    }
}